<%@ page contentType="text/html;charset=UTF-8" isELIgnored="false" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
    <title>
        <c:choose>
            <c:when test="${action=='save'}">
                添加简历
            </c:when>
            <c:when test="${action=='update'}">
                修改简历
            </c:when>
        </c:choose>
    </title>
</head>
<body>

<form
      <c:choose>
      <c:when test="${action=='save'}">
          action="/resume/saveResume"
</c:when>
        <c:when test="${action=='update'}">
            action="/resume/updateResume"
        </c:when>
</c:choose>

>

    <c:choose>
        <c:when test="${action=='save'}">
            姓名：<input type="text" name="name" />
            <br/>
            地址：<input type="text" name="address" />
            <br/>
            电话号：<input type="text" name="phone"/>
            <br/>
            <input type="submit" value="提交">
        </c:when>
        <c:when test="${action=='update'}">
            id：<input type="text" name="id" value="${resume.id}" readonly/>
            <br/>
            姓名：<input type="text" name="name" value="${resume.name}"/>
            <br/>
            地址：<input type="text" name="address" value="${resume.address}"/>
            <br/>
            电话号：<input type="text" name="phone" value="${resume.phone}"/>
            <br/>
            <input type="submit" value="提交">
        </c:when>
    </c:choose>

</form>

</body>
</html>
